<?php
	if (!empty($search)) {
		echo '<div id="SearchHeader"><h1>' . __d('lil_blogs', 'Search Results', true) . '</h1></div>';
	} else {
		$this->set('title_for_layout', $this->Html->clean($blog['Blog']['name']));
	}
?>
<div id="post-index">
<?php foreach($posts as $post) { ?>
<div class="post" id="post-<?php echo $post['Post']['id']; ?>">
	<div class="meta"><?php echo $this->element('meta', array('post' => $post)); ?></div>
	<div class="body">
	<?php
		echo '<h1>' . $this->LilBlogs->permaLink($post) . '</h1>';
		echo $this->LilBlogs->excerpt($post);
	?>
		<div style="clear: both;"></div>
	</div>
</div>
<?php } ?>
<div class="paging">
<?php
	echo $this->Paginator->next(__d('lil_blogs', 'Older', true), array('url' => array('blog' => $blog['Blog'][Configure::read('Lil.areaSlugField')])), '');
	echo $this->Paginator->prev(__d('lil_blogs', 'Newer', true), array('url' => array('blog' => $blog['Blog'][Configure::read('Lil.areaSlugField')])), '');
?>
</div>
</div>